#ifndef DOWNFALLPLAYER_H
#define DOWNFALLPLAYER_H
#include<QKeyEvent>
#include<QPixmap>
#include<Defines.h>
#include<downbullet.h>

class DownFallPlayer
{
public:
    DownFallPlayer();

    //发射子弹
    void shoot();
    //设置玩家位置
    void setPosition(int x,int y);
    //玩家资源对象
    QPixmap DownPlayer;
    int p_X;
    int p_Y;
    //矩形边框
    QRect p_Rect;
    //血量
    int Blood=DOWNPLAYER_BLOOD;
    //弹夹
    DownBullet p_bullets[BULLET_NUM];

    bool Qkeypressflag;
    int keyflag;
    DownBullet p_bullets2[BULLET_NUM];
    //发射间隔记录
    int p_recorder=0;
};

#endif // DOWNFALLPLAYER_H
